package com.cssy.authority.entity;

public class Group {
    private Integer id;

    private Integer pid;

    private String name;

    private String description;

    private String managers;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    public String getManagers() {
        return managers;
    }

    public void setManagers(String managers) {
        this.managers = managers == null ? null : managers.trim();
    }
    
    public boolean equals(Object object){
    	if(! (object instanceof Group)){
    		return false;
    	}
    	Group to = (Group) object;
    	if(this.getId().equals(to.getId())){
    		return true;
    	}else{
    		return false;
    	}
    }
}